package com.tiny.work.test.test.entity;

import com.google.common.collect.Lists;
import lombok.Data;

import java.util.Collections;
import java.util.List;

@Data
public class Demo {
    int id;
    List<Integer> list = Lists.newArrayList();

    public Demo(int id) {
        this.id = id;
    }
    @Override
    public String toString(){
        Collections.sort(list);
        return  ""+id+list.toString();
    }
}